package org.example.hello;

public class HelloSpring {
    //定义hello属性，该属性的值将通过Spring框架进行设置
    private String hello = null;

    public void print(){
        System.out.println("Spring say:,"+this.getHello()+"!");
    }

    public String getHello() {
        return hello;
    }

    public void setHello(String hello) {
        this.hello = hello;
    }
}
